package com.probox.modules.controller.customer;

import com.probox.common.core.utils.poi.ExcelUtil;
import com.probox.common.core.web.controller.BaseController;
import com.probox.common.core.web.domain.AjaxResult;
import com.probox.common.core.web.page.TableDataInfo;
import com.probox.common.entity.domain.customer.CustomerInvoice;
import com.probox.common.entity.service.customer.ICustomerInvoiceService;
import com.probox.common.security.annotation.VerifyAuthorize;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;


/**
 * 客户发票信息Controller
 *
 * @author zsy
 * @date 2021-07-10
 */
@Api(value = "客户发票", tags = {"客户发票前端操作接口"})
@RestController
@RequestMapping("/customer/invoice")
public class CustomerInvoiceController extends BaseController {
    @Autowired
    private ICustomerInvoiceService customerInvoiceService;

    /**
     * 查询客户发票信息列表
     */
    @GetMapping("/list")
    public TableDataInfo list(CustomerInvoice customerInvoice) {
        startPage();
        List<CustomerInvoice> list = customerInvoiceService.listInvoice(customerInvoice);
        return getDataTable(list);
    }


}
